public class test01 {
    class Solution {
        public int findLengthOfLCIS(int[] nums) {
            //利用dp
            int[] dp = new int[nums.length];
            Arrays.fill(dp,1);
            int res = 1;

            for(int i = 1;i<nums.length;i++){
                if(nums[i]>nums[i-1]){
                    dp[i] = dp[i-1]+1;
                }
                res = Math.max(dp[i],res);
            }
            return res;
        }
    }
}
